using System;
namespace Net35.Xrm.Sdk.Client
{
	internal static class Extensions
	{
		internal static System.Uri GetServiceRoot(this System.Uri url)
		{
			ClientExceptionHelper.ThrowIfNull(url, "url");
			return new System.UriBuilder(url)
			{
				Query = string.Empty,
				Path = string.Empty
			}.Uri;
		}
	}
}
